package service.impl;

import dao.DormroomsDao;
import dao.impl.DormroomsDaoImpl;
import entity.Dormrooms;
import service.DormroomsService;

import java.sql.SQLException;
import java.util.List;

public class DormroomsServiceImpl implements DormroomsService {
    DormroomsDao a=new DormroomsDaoImpl();

    @Override
    public List<Dormrooms> cx2(Integer lid) throws SQLException, ClassNotFoundException {
        return a.cx2(lid);
    }

    @Override
    public List<Dormrooms> cxb(Integer lid, int page, int pageSize) throws SQLException, ClassNotFoundException {
        return a.cxb(lid, page, pageSize);
    }

    @Override
    public int getTotalCount(Integer lid) throws SQLException, ClassNotFoundException {
        return a.getTotalCount(lid);
    }

    @Override
    public int scb(int id) throws SQLException, ClassNotFoundException {
        return a.scb(id);
    }

    @Override
    public int tjb(int building_id, String room_number, int floor, int capacity) throws SQLException, ClassNotFoundException {
        return a.tjb(building_id,room_number,floor,capacity);
    }
}
